<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>
        svg:after{
            content: '';
            margin-top: 100%;
        }
    </style>
</head>
<body>
<svg width="100%" viewBox="0 0 100 100" style="max-width: 200px;overflow: hidden;"><text x="20" y="20">ccccc</text></svg>

<script src="https://d3js.org/d3.v4.min.js"></script>

</body>
</html>